import {
	upLoadfile
} from 'utils/requests'

export const uploadProductImg = (filePath) => {
	return upLoadfile({
		url: "/applet/file/uploadProductImg",
		filePath,
		name:"files"
	})
}

export const uploadDemandImg = (filePath) => {
	return upLoadfile({
		url: "/applet/file/uploadDemandImg",
		filePath,
		name:"files"
	})
}



/* 上传身份证国徽面 */
export const uploadIdCardBack = filePath => upLoadfile({
	url: "/applet/file/uploadIdCardBackImg",
	filePath,
	name:"backImg"
})

/* 上传身份证人像面 */
export const uploadIdCardFront = filePath => upLoadfile({
	url: "/applet/file/uploadIdCardFrontImg",
	filePath,
	name:"frontImg"
})